package com.yupi.yuoj.service;

import com.yupi.yuoj.model.entity.ContentLike;
import com.yupi.yuoj.model.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author admin
* @description 针对表【content_like(内容点赞表)】的数据库操作Service
* @createDate 2025-11-01 21:28-49
*/
public interface ContentLikeService extends IService<ContentLike> {

    /**
     * 内容点赞
     *
     * @param contentId
     * @param loginUser
     * @return
     */
    int doContentLike(long contentId, User loginUser);

    /**
     * 内容点赞（内部方法）
     *
     * @param userId
     * @param contentId
     * @return
     */
    int doContentLikeInner(long userId, long contentId);

}
